public class Student {
    private String name = "lala";
    public int age = 18;
    public Student(){
        System.out.println("被逮到了");
    }
    private Student(String name,int age){
        this.name = name;
        this.age = age;
    }
    public void eat(){
        System.out.println("吃饭饭");
    }
    private void sleep(String str){
        System.out.println(str + ":睡觉觉");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
